package com.tiger.qcu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tiger.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import javax.validation.constraints.*;
import com.tiger.common.core.domain.BaseEntity;

/**
 * 新闻信息对象 sys_news_info
 * 
 * @author jerry
 * @date 2025-07-07
 */
@Data
@TableName(value = "sys_news_info")
@ApiModel(value = "新闻信息")
public class NewsInfo extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @ApiModelProperty("序号")
    private Long newsId;

    /** 新闻标题 */
    @ApiModelProperty("新闻标题")
    @Excel(name = "新闻标题")
    private String newsTitle;

    /** 新闻发布时间 */
    @ApiModelProperty("新闻发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新闻发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newsTime;

    /** 新闻内容 */
    @ApiModelProperty("新闻内容")
    @Excel(name = "新闻内容")
    private String newsContent;

    /** 新闻摘要 */
    @ApiModelProperty("新闻摘要")
    @Excel(name = "新闻摘要")
    private String newsAbstract;

    /** 新闻图片 */
    @ApiModelProperty("新闻图片")
    @Excel(name = "新闻图片")
    private String newsImg;

    /** 用户ID */
    @ApiModelProperty("用户ID")
    private Long userId;

    /** 部门ID */
    @ApiModelProperty("部门ID")
    private Long deptId;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("newsTitle", getNewsTitle())
            .append("newsTime", getNewsTime())
            .append("newsContent", getNewsContent())
            .append("newsAbstract", getNewsAbstract())
            .append("newsImg", getNewsImg())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
